package com.yang.baseservice.exceptionhandle;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author yds
 * @program edu
 * @description 自定义异常类
 * @create 2020-11-19 11:23
 **/
@Data
@AllArgsConstructor //生成有参构造函数
@NoArgsConstructor //生成无参构造函数
public class EduException extends RuntimeException {
    private Integer code;//状态码
    private String msg;//异常信息
}